{% extends "nav.html" %}
{% block little %}存储{{ data.first.san }}{% endblock %}
{% block content %}
    <!-- Main Content -->
    <div class="container-fluid">
        <div class="side-body">
            <div class="page-title">
                <span class="title">光交</span>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <div class="card">
                        <div class="card-header">
                            <div class="card-title">
                                <div class="title">光交详细清单</div>
                            </div>
                            <div class="card-body">
                                <table class="datatable table table-striped" cellspacing="0" width="100%">
                                    <thead>
                                    <tr>
                                        <th>槽位</th>
                                        <th>槽位端口</th>
                                        <th>状态</th>
                                        <th>vsan</th>
                                        <th>wwn</th>
                                        <th>发送流量(mb)</th>
                                        <th>接收流量(mb)</th>
                                        <th>发送光信号</th>
                                        <th>接收光信号</th>
                                        <th>其他</th>
                                        <th>主机IP</th>
                                        <th>业务名称</th>
                                        <th>存储IP</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        {% for i in data%}
                                            <tr>

                                                <td>{{ i.slot }}</td>
                                                <td>{{ i.port }}</td>
                                                <td class="am-hide-sm-only">{{ i.speed }}</td>
                                                <td class="am-hide-sm-only">{{ i.type }}</td>
                                                <td class="am-hide-sm-only">
{#                                                    {% if  i.wwn_set.all|length > 0 %}#}
{#                                                        {% for k in  i.wwn_set.all  %}#}
{#                                                            <p>{{ k.wwn }}</p>#}
{#                                                        {% endfor %}#}
{#                                                    {% endif %}#}
                                                    {{ i.wwn__wwn }}
                                                </td>
                                                <td class="am-hide-sm-only">{{ i.tx }}</td>
                                                <td class="am-hide-sm-only">{{ i.rx }}</td>
                                                <td class="am-hide-sm-only">{{ i.TX_Power }}</td>
                                                <td class="am-hide-sm-only">{{ i.RX_Power }}</td>
                                                <td class="am-hide-sm-only">{{ i.Notes }}</td>
                                                <td class="am-hide-sm-only">
{#                                                    {% if  i.wwn_set.all|length > 0 %}#}
{#                                                        {% for k in  i.wwn_set.all  %}#}
{#                                                            <p><a >{{ k.host_wwn }}</a></p>#}
{#                                                        {% endfor %}#}
{#                                                    {% endif %}#}
                                                    {{ i.wwn__host_wwn__ip }}
                                                </td>
                                                <td>{{ i.wwn__host_wwn__app }}</td>
                                                <td class="am-hide-sm-only">
{#                                                    {% if  i.wwn_set.all|length > 0 %}#}
{#                                                        {% for k in  i.wwn_set.all  %}#}
{#                                                            <p><a data-toggle="popover" id="san_poper">{{ k.storage_wwn }}</a></p>#}
{#                                                        {% endfor %}#}
{#                                                    {% endif %}#}
                                                    {{ i.wwn__storage_wwn__ST_ip }}
                                                </td>
                                            </tr>
                                        {% endfor %}
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}
{% block js %}
    <script>
        $(function () {
        })
    </script>
{% endblock %}